These functions compute the log-likelihood and Akaike's An Information
Criterion (AIC) of a bg_GLM object. See
logLik.lm and extractAIC for
details.
# S3 method for bg_GLM
logLik(object, REML = FALSE, ...)# S3 method for bg_GLM
extractAIC(fit, scale = 0, k = 2, ...)
logLik returns an object of class logLik with several
attributes. extractAIC returns a numeric vector in which the first
element is the equivalent degrees of freedom and the remaining are
the AIC's for each region
A bg_GLM object
Logical indicating whether to return the restricted
log-likelihood. Default: FALSE
Unused
Should be left at its default
Numeric; the weight of the equivalent degrees of freedom
The functions AIC and BIC will also
work for bg_GLM objects because they each call logLik.